<?php
    echo $this->Form->create('Category', array(
	        'url'   => array('action' => $this->request->params['action']),
	        'class' => 'form label-inline',
	        'inputDefaults' => array('div' => array('class' => 'field')),
    		'name'	=> 'categories'
        )
    );
    echo $this->Form->inputs(array(
        'id',
        'name',
        'category_id'
    ));
    echo $this->Form->end(array('class' => 'btn', 'div' => array('class'=>'buttonrow'), 'label' => 'Guardar'));
?>